using Bowling.Enums;

namespace Bowling;

public abstract class Frame : IVisualizable
{
    internal abstract FrameProgress Progress { get; }

    internal List<int?> PinsRecord { get; set; } = new();

    internal int? FirstPins => PinsRecord.ElementAtOrDefault(0);

    internal int? SecondPins => PinsRecord.ElementAtOrDefault(1);

    public abstract string Visualize();
}
